﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DotNET4Study
{
    class TaskExceptionStudy
    {
        public static void Execute()
        {
            TaskScheduler.UnobservedTaskException += (s, e) => { e.SetObserved(); };
            Task.Factory.StartNew(() =>
            {
                throw new Exception();
            }) ;

        }
    }
}
